package com.sun.common.annotation;

import com.sun.common.enums.DataSourceType;

import java.lang.annotation.*;

/**
 * @author zhangquanwei
 * @version 1.0
 * @since 2025-02-13 16:21
 */

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {

    /**
     * 切换数据源名称
     */
    public DataSourceType value() default DataSourceType.MASTER;
}
